package com.airticket.demo.bean;

import lombok.Data;

@Data
public class JsonResult<T> {
    public static final int SUCCESS=200;
    private Boolean success;
    private String msg;
    private T data;
    //正常返回数据
    public JsonResult(Boolean success, String msg, T data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }
    //异常返回数据
    public JsonResult(Boolean success, String msg)
    {
        this.success = success;
        this.msg = msg;
    }
}
